package de.roskenet.clou.helper;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class DateTimeHelper {
	
	public void setWeekday(String weekday) {	}
	
	public String getWeekday()
	{
		String retVal = null;
		
		int day;
		Calendar cal = new GregorianCalendar();
		
		day = cal.get(Calendar.DAY_OF_WEEK);
		
		switch(day) {
		case 1:
			retVal="sonntag";
			break;
		case 2:
			retVal="montag";
			break;
		case 3:
			retVal="dienstag";
			break;
		case 4:
			retVal="mittwoch";
			break;
		case 5:
			retVal="donnerstag";
			break;
		case 6:
			retVal="freitag";
			break;
		case 7:
			retVal="samstag";
			break;
		}
		return retVal;
	}
}
